package factoryfunction.controller;

import factoryfunction.service.AwardFactoryFactory;
import factoryfunction.service.factory.AwardFactory;
import simplefactory.vo.AwardInput;
import simplefactory.vo.Result;

/**
 * @Author liangbaigao
 * @Date 2023/9/25 23:49
 */
public class Client4 {

    public Result sendAward(AwardInput input){
        AwardFactory factory = AwardFactoryFactory.getFactory(input.getType());
        return factory.getInstance().sendAward();
    }
}
